import { RouteObject as RRouteObject, useRoutes, Navigate } from 'react-router-dom'
import dataViewerRoutes from './data-viewer'
import organizationRoutes from './organization'
import Layout from '@/layouts'

const routes = [
  {
    path: '/',
    element: <Layout layoutApply='mainPage' />,
    children: [
			...dataViewerRoutes,
			...organizationRoutes,
    ]
  },
]

const Router = () => useRoutes(routes as RRouteObject[])

export default Router
